package com.rkhd.utils;

import org.apache.commons.collections.bag.SynchronizedSortedBag;

import java.io.File;
import java.io.IOException;

public class Global {

    public static final String ProjectCurrentPath = getProjectCurrentPath();

    /**
     * 替换路径分割符
     *
     * @return 转义后的路径分割符
     */
    public static String getProjectCurrentPath() {


        File file = new File("");
        /**
         *  在正常情况下 : '\\\\' 代表java 下的 " //"
         */
        String replaceAll = file.getAbsolutePath().replaceAll("\\\\", "/");

        return replaceAll;

    }

}
